package com.hiyee.grace.result;

public enum ResponseStatusEnum {

    SUCCESS(200, "业务处理成功"),
    FAIL(500, "业务处理失败"),
    SYSTEM_ERROR(5555, "系统核心异常"),

    AUTH_FAIL(401, "登录信息已失效，请重新登录"),
    AUTH_FORBIDDEN(403, "请登录"),

    REQUEST_PARAM_EMPTY(600, "非法的请求参数"),

    UPLOAD_FILE_NOT_FOUND(700, "请选择上传的文件"),
    UPLOAD_FILE_NAME_ERROR(701, "上传的文件名为空"),
    UPLOAD_FILE_SUFFIX_ERROR(702, "不支持的文件格式"),
    UPLOAD_FILE_FAIL(703, "文件上传失败"),
    UPLOAD_FILE_SIZE_LIMIT(704, "文件大写已超过500kb"),

    ADMIN_USER_NOT_FOUND(801, "管理员不存在"),
    ADMIN_USER_PW_ERROR(802, "管理员账户或密码不正确"),
    ADMIN_USER_NAME_EXIST(803, "管理员账户已存在"),
    ADMIN_USER_PW_CONFIRM_FAIL(804, "两次密码不一致"),
    ADMIN_USER_ADD_FAIL(805, "管理员添加失败"),

    FILE_FACE_ID_NOT_FOUD(901, "文件不存在"),

    SMS_SEND_CODE_BUSY(10001, "发送频率太高，请稍后重试"),
    SMS_CODE_ERROR(10002, "验证码错误"),

    USER_STATUS_FROZEN(10003, "账户已被冻结"),
    USER_UPDATE_FAIL(10004, "用户信息更新失败"),
    USER_NEED_ACTIVE(10005, "请完善信息激活账户"),
    USER_NOT_FOUND(10006, "用户不存在"),


    ;

    private Integer status;
    private String msg;

    ResponseStatusEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
